package com.jessechanrui.template.thread;

import java.util.concurrent.Callable;

/**
 * @author chenrui
 * @date 2024/12/12
 */
public class ThreadCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        long start = System.currentTimeMillis();
        ThreadUtil.run("Callable方式");
        long time = System.currentTimeMillis() - start;
        return Thread.currentThread().getName() + " 异步返回结果，耗时：" + time;
    }
}
